package com.example.xuanke.service.impl;

import com.example.xuanke.mapper.XuankeMapper;
import com.example.xuanke.pojo.Xuanke;
import com.example.xuanke.service.XuankeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XuankeServiceImpl implements XuankeService {
    @Autowired
    private XuankeMapper xuankeMapper;

    @Override
    public List<Xuanke> getAll() {
        return xuankeMapper.getAll();
    }

    @Override
    public void add(Xuanke xuanke) {
        xuankeMapper.add(xuanke);
    }

    @Override
    public void update(Xuanke xuanke) {
        xuankeMapper.update(xuanke);
    }

    @Override
    public void delete(Integer id) {
        xuankeMapper.delete(id);
    }
}
